Skip to content

fix(streams): name missing groups and tighten XINFO STREAM shapes - #186

Merged
MohitGoyal09 merged 5 commits into
mainfrom
fix/181-stream-texts
Nov 18, 2026
Merged

MohitGoyal09 merged 5 commits into
mainfrom
fix/181-stream-texts

Conversation

@MohitGoyal09

@MohitGoyal09 MohitGoyal09 commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #181

Redis reference: https://redis.io/docs/latest/commands/xinfo-stream/

  • XGROUP SETID/CREATECONSUMER/DELCONSUMER and XINFO CONSUMERS on an existing key report NOGROUP No such consumer group '<g>' for key name '<k>'; XPENDING keeps the combined key/group text.
  • Malformed XINFO STREAM shapes (COUNT without FULL, extra args, bad tokens) report unknown subcommand or wrong number of arguments for '<token>'. Try XINFO HELP. with the token case preserved.
  • Regression test covers both families; it fails on main.
  • A 12-case differential against Redis 8.8.0 matches byte-for-byte.

Verification

cargo fmt --all -- --check
cargo clippy --all-targets -- -D warnings
cargo test

All 40 test binaries pass.

…D IDs

Check the key and type before the XINFO STREAM shape, resolve the group before
parsing XGROUP SETID IDs, echo raw non-UTF-8 names, and cut NUL tokens from the
shape error.
@MohitGoyal09
MohitGoyal09 merged commit fd463ef into main Nov 18, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

XINFO STREAM COUNT and per-subcommand NOGROUP texts differ

1 participant